package com_djm_2025_05_26.OOP.CodeBlocks;

/**演示代码块
 *
 * @author dengjiangming
 * @version 1.0.0
 * @date 2025 05-26
 */
public class Main {

    public static void main(String[] args) {
        //局部代码块，即定义在方法内部的代码块
        {
            int x = 10;
            System.out.println("x = "+x);
        }

        int x = 20;
        System.out.println("x = " +x);
        }
}


